<%@ page language="java" pageEncoding="UTF-8"%>
<div id="sales_num_container" style="width:100%; height: 400px; margin: 0 auto"></div>
<script type="text/javascript">
		 $('#sales_num_container').highcharts({
             chart: {
             },
             title: {
                 text: 'E爱车销量统计'
             },
             //x轴
             xAxis: {
                 //categories: ['一月', '二月', '三月', '四月', '五月','六月','七月','八月','九月','十月','十一月','十二月']
                   categories: [ ${yue }]
             },
             yAxis : {
					min : 0,
					title : {
						text : '次'
					}
				},
             tooltip: {
                 formatter: function () {
                     var s;
                     if (this.point.name) { // the pie chart                   
                         s = '' +
                             this.point.name + ': ' + this.y;
                     } else {
                         s = '' +
                             this.x + ': ' + this.y;
                     }
                     return s;
                 }
             },
             labels: {
                 items: [{
                     html: '总销量情况',
                     style: {
                         left: '20px',
                         top: '8px',
                         color: 'black'
                     }
                 }]
             },
             series: [{
             	type: 'column',
             	name: '销量',
             	data:[${yueliang}]
             },
              {
                  type: 'pie',
                  name: '年度销量',
                  data: [{
                 	 name: '销量',                                              
                      y: ${liang},                                                    
                      color: Highcharts.getOptions().colors[0] // Joe's color   
                  }],
                  center: [50, 60],
                  size: 100,
                  showInLegend: false,
                  dataLabels: {
                      enabled: false
                  }
              }]
         });
</script>